// samsting : this file is auto create.

#include "Slb/2013-02-21/DescribeBackendServersResponse.h"

namespace aliyun { namespace Slb {

DescribeBackendServersResponse::DescribeBackendServersResponse() {
}

const string& DescribeBackendServersResponse::Listener::BackendServer::GetServerId(void) const {
  return ServerId_;
}

const string& DescribeBackendServersResponse::Listener::BackendServer::GetServerHealthStatus(void) const {
  return ServerHealthStatus_;
}

const std::vector<DescribeBackendServersResponse::Listener::BackendServer>& DescribeBackendServersResponse::Listener::GetBackendServers(void) const {
  return BackendServers_;
}

int DescribeBackendServersResponse::Listener::GetListenerPort(void) const {
  return ListenerPort_;
}

const std::vector<DescribeBackendServersResponse::Listener>& DescribeBackendServersResponse::GetListeners(void) const {
  return Listeners_;
}

const char* DescribeBackendServersResponse::BaseKey(void) {
  return "DescribeBackendServersResponse";
}

void DescribeBackendServersResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Listeners__length = 0;
  UnmarshallerInt(Listeners__length, response_map, "DescribeBackendServersResponse.Listeners.Length");
  if(Listeners__length >= 0) {
    Listeners_.resize(Listeners__length);
    for(int i1 = 0; i1 < Listeners__length; i1++) {
      int Listeners_i1_BackendServers__length = 0;
      UnmarshallerInt(Listeners_i1_BackendServers__length, response_map, "DescribeBackendServersResponse.Listeners[+"+string_ValueOfInt(i1)+"].BackendServers.Length");
      if(Listeners_i1_BackendServers__length >= 0) {
        Listeners_[i1].BackendServers_.resize(Listeners_i1_BackendServers__length);
        for(int i2 = 0; i2 < Listeners_i1_BackendServers__length; i2++) {
          UnmarshallerString(Listeners_[i1].BackendServers_[i2].ServerId_, response_map, "DescribeBackendServersResponse.Listeners[+"+string_ValueOfInt(i1)+"].BackendServers["+string_ValueOfInt(i2)+"].ServerId");
          UnmarshallerString(Listeners_[i1].BackendServers_[i2].ServerHealthStatus_, response_map, "DescribeBackendServersResponse.Listeners[+"+string_ValueOfInt(i1)+"].BackendServers["+string_ValueOfInt(i2)+"].ServerHealthStatus");
        } // for(int i2 = 0; i2 < Listeners_i1_BackendServers__length; i2++) {
      } // if(Listeners_i1_BackendServers__length >= 0) {

      UnmarshallerInt(Listeners_[i1].ListenerPort_, response_map, "DescribeBackendServersResponse.Listeners["+string_ValueOfInt(i1)+"].ListenerPort");
    } // for(int i1 = 0; i1 < Listeners__length; i1++) {
  } // if(Listeners__length >= 0) {

}


} } // namespace aliyun { namespace Slb {

// end of file 
